package com.nsl.my_youlai.mystar;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;

public class NslUtilJson {

   public static String convert2JsonPrettyAndNull(Object object){
       return JSON.toJSONString(object, JSONWriter.Feature.PrettyFormat, JSONWriter.Feature.WriteMapNullValue);
   }
}
